<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/common.css"/>
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/ersp_res_stand.css"/>
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/dl.css"/>
<link rel="stylesheet" type="text/css" href="${BASE_PATH}/static/css/jBootsrapPage.css"/>
<link rel="stylesheet" href="${BASE_PATH}/static/css/mymessege.css" />
<script type="text/javascript" src="${BASE_PATH}/static/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="${BASE_PATH}/static/js/jBootstrapPage.js"></script>
<script src="${BASE_PATH}/static/js/jquery.lightbox_me.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="${BASE_PATH}/static/js/login.js"></script>

<title>我的消息</title>
<style>

.pagination{font-weight:bold;}

</style>
<script type="text/javascript">
$(function(){
    createPage(10, 13, 150);
    var type= $("#type").val();
    function createPage(pageSize, buttons, total) {
        $(".pagination").jBootstrapPage({
            pageSize : pageSize,
            total : total,
            maxPageButton:buttons,
            onPageClicked: function(obj, pageIndex) {
			 var pageno=pageIndex+1;
			 $.ajax({

             type: "GET",

             url: "${BASE_PATH}/message/index",

             data: {pagenumber:pageno,msg_type:type},

             dataType: "json",

             success: function(data){
			    alert(data);
              }
			 });
              $('#pageIndex').html('您选择了第<font color=red>'+(pageIndex+1)+'</font>页');
            }
        });
    }
      
});
function message(msg_type){
   $("#type").val(msg_type);
	window.location.href='${BASE_PATH}/message/index?msg_type='+msg_type;
	
}
</script>
</head>
  
<body>
<!--head start-->

<div class="head">
   <div class="head-topbg">
    <div class="head-top">
     <div class="head-logo">
        <img src="images/logo.png" />
     </div> 
     <div class="head-search">
         <form action="###" method="post">
            <input type="text" class="text"/> 
            <input type="submit" class="submit" value=""/>
         </form>
     </div>
     <div class="head-login">
           <ul>
		    
		    <#if session["SESSION_USERNAME"]?exists>
			 <li>${session["SESSION_USERNAME"]}</li>
			 <li><a href="logoff">退出</a></li>
			<#else>
			 <li><a href="../ersp_sys/login" class="green" id="cmd_login2" >登录</a></li>
			 <li><a href="../ersp_sys/regist01">注册</a></li>
			</#if>
			
        </ul>         
     </div>
     <div class="head-right">
        <a href="###" class="setup">
           <img src="images/Cogwheel.png" />
        </a>
        <div class="email">
           <a href="###">
              <img src="images/email-icon.png" />
           </a>
           <span>12</span>
        </div>
     </div>
     </div>
   </div>
   <div class="nav" id="nav">
     <ul>
       <li><a href="index.html" target="_top">首页</a></li>
       <li class="li1"><a href="ersp_res_stand.html" target="_top">基础设施预约</a></li>
       <li><a href="ersp_res_human.html" target="_top">人力资源预约</a></li>
       <li><a href="ersp_res_course.html" target="_top">课程资源预约</a></li>
       <li><a href="ersp_res_online.html" target="_top">在线资源</a></li>
       <li><a href="ersp_achievement.html" target="_top">成果展现</a></li>
       <li><a href="ersp_res_cust.html" target="_top">定制化资源服务</a></li>
       <li><a href="services.html" target="_top">综合服务系统</a></li>
     </ul> 
   </div>
</div>
<!--head end-->
<div class="fnav">
   <ul>
      <li><a href="###">首页</a></li>
      <li><span>></span></li>
      <li><a href="###">我的消息</a></li>
   </ul>   
</div>
<div class="messege-con">
	<ul class="messege">
		<li><a href="javascript:message(0)" class="first">系统消息</a></li>
		<li><a href="javascript:message(1)">审批消息</a></li>
		<li><a href="javascript:message(2)">预约消息</a></li>
		<li><a href="javascript:message(3)">问卷消息</a></li>
		<input type="hidden" id="type" value="0"/>
	</ul>
	<#list messages as rowkey>
	  <div id="box-2">
	
		
		<img src="images/1425435.png"  />
		 	<div>${rowkey.msg_subject}</div>
		<h3>
			${rowkey.msg_content}
		</h3>
		<div>${rowkey.last_update_time}</div>
	  </div>
	</#list>

		
</div>
  <div style="padding-left:100px;">
    
      <p id="pageIndex" style="font-size:20px;font-weight:bold;color:blue;margin-left:150px;"></p>

      <ul class="pagination"></ul>
    </div>

</html>
